﻿var status = 0;
var typed = 0;
var rmb = 0;
var seld;
var aaa ="#fUI/UIWindow/AriantMatch/characterIcon/5#";
var yun ="#fUI/UIWindow/Megaphone/2#";////红沙漏
var yun2 ="#fUI/UIWindow/Quest/icon8/0#";////蓝指标
var yun8 ="#fUI/UIWindow/MonsterBook/arrowLeft/normal/0#";////金左指标
var yun9 ="#fUI/UIWindow/MonsterBook/arrowRight/normal/0#";////金右指标
var yun4 ="#fUI/UIWindow/Quest/reward#";////奖励
var ttt ="#fUI/UIWindow/Quest/icon2/7#";//"+ttt+"//美化1
var ttt2 ="#fUI/UIWindow/Quest/icon6/7#";////美化2
var ttt3 ="#fUI/UIWindow/Quest/icon3/6#";//"+ttt3+"//美化圆
var ttt4 ="#fUI/UIWindow/Quest/icon5/1#";//"+ttt4+"//美化New
var ttt5 ="#fUI/UIWindow/Quest/icon0#";////美化!
var ttt7 ="#fUI/Basic/BtHide3/mouseOver/0#";//"+ttt6+"//美化会员
var ttt6 ="#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var epp = "#fEffect/CharacterEff/1082312/0/0#";  //彩光
var eff = "#fCharacter/Weapon/01702523.img/48/straight/0/effect#"; //彩虹带
var eff = "#fEffect/CharacterEff/1112905/0/1#"; //
var epp = "#fEffect/CharacterEff/1082312/0/0#";  //彩光
var epp1 = "#fEffect/CharacterEff/1082312/2/0#"; //彩光1
var axx = "#fEffect/CharacterEff/1051294/0/0#";  //爱心
var xxx = "#fEffect/CharacterEff/1082565/2/0#"; //星系
var ppp = "#fEffect/CharacterEff/1112907/4/0#"; //泡炮 
var epp3 = "#fEffect/CharacterEff/1112908/0/1#";  //彩光3
var axx1 = "#fEffect/CharacterEff/1062114/1/0#";  //爱心
var zs = "#fEffect/CharacterEff/1112946/2/0#";  //砖石粉
var zs1 = "#fEffect/CharacterEff/1112946/1/1#";  //砖石蓝
var dxxx = "#fEffect/CharacterEff/1102232/2/0#"; //星系
var tz = "#fEffect/CharacterEff/1082565/2/0#";  //兔子蓝
var tz1 = "#fEffect/CharacterEff/1082565/4/0#";  //兔子粉
var tz7 = "#fEffect/CharacterEff/1112900/3/1#";  //音符红
var tz8 = "#fEffect/CharacterEff/1112900/4/1#";  //音符绿
var tz88 = "#fEffect/CharacterEff/1112900/5/1#";  //音符绿!
var yun1 ="#fUI/UIWindow/Quest/icon7/10#";////红色圆
var tz9 = "#fEffect/CharacterEff/1112902/0/0#";  //蓝心
var tz10 = "#fEffect/CharacterEff/1112903/0/0#";  //红心
var tz11 = "#fEffect/CharacterEff/1112904/0/0#";  //彩心
var tz12 = "#fEffect/CharacterEff/1112924/0/0#";  //黄星
var tz13 = "#fEffect/CharacterEff/1112925/0/0#";  //蓝星
var tz14 = "#fEffect/CharacterEff/1112926/0/0#";  //红星
var tz15 = "#fEffect/CharacterEff/1112949/0/0#";  //花样音符
var tz16 = "#fEffect/CharacterEff/1112949/1/0#";  //花样音符
var tz17 = "#fEffect/CharacterEff/1112949/2/0#";  //花样音符
var tz18 = "#fEffect/CharacterEff/1112949/3/0#";  //花样音符
var tz19 = "#fEffect/CharacterEff/1112949/4/0#";  //花样音符
var tz20 = "#fEffect/CharacterEff/1114000/1/0#";  //红星花
var p3 = "#fUI/UIToolTip.img/Item/Equip/Star/Star#";
var p4 ="#fUI/StarCityUI.img/GradeInfo/icon_ss/7#"
var p1 ="#fUI/SoulUI.img/DungeonMap/icon/soulTrap/0#"
var p ="#fUI/StarCityUI.img/GradeInfo/icon_ss/2#"
var q6 ="#fUI/RunnerGame.img/RunnerGameUI/UI/Point/2#"
var p2 ="#fUI/UIWindow/Quest/icon5/1#";//"+z+"//美化
var e2 ="#fUI/Basic.img/HScr7/enabled/base#"
var e1 ="#fUI/Basic.img/HScr7/enabled/next0#"
var e3 ="#fUI/Basic.img/HScr7/enabled/prev0#"
var icon2 = "#fUI/UIToolTip.img/Item/Equip/Star/Star#";




function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (cm.getPlayer().getCSPoints(1) < 100000) {
            cm.sendOk("#e#r【骑宠技能商店】#k#n\r\n\r\n本店最低消费#g1000点劵#k\r\n\r\n目前你没有足够的点劵，请赚取足够的点券再来吧~！.")
            cm.dispose();
        } 
    else if (status == 0) {

		var selStr = "#e#r┄┄┄┅═☆  "+q6+"骑宠技能商店"+q6+"  ☆═┅┄┄┄\r\n\r\n";
		selStr +="	[每种技能价格1000点卷， 点击后直接购买]\r\n"; 
		selStr +="	[技能均有时限，可重复学习，时限重新计算]\r\n#k"; 
		selStr +=" "+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+"";
		selStr +="#L1##e"+p2+" #v2434518##z2434518##l\r\n\r\n#L2#"+p2+" #v2433006##z2433006##l\r\n\r\n#L3#"+p2+" #v2433658##z2433658##l\r\n\r\n";
		selStr +="#L4#"+p2+" #v2434525##z2434525##l\r\n\r\n#L5#"+p2+" #v2434526##z2434526##l\r\n\r\n#L6#"+p2+" #v2434581##z2434581##l\r\n\r\n";
		selStr +="#L7#"+p2+" #v2434674##z2434674##l\r\n\r\n#L8#"+p2+" #v2434582##z2434582##l\r\n\r\n#L9#"+p2+" #v2434580##z2434580##l\r\n\r\n";
		selStr +="#L10#"+p2+" #v2434527##z2434527##l\r\n\r\n#L11#"+p2+" #v2433052##z2433052##l\r\n\r\n#L12#"+p2+" #v2433054##z2433054##l\r\n\r\n";
		selStr +="#L13#"+p2+" #v2434276##z2434276##l\r\n\r\n#L14#"+p2+" #v2434650##z2434650##l\r\n\r\n#L15#"+p2+" #v2434516##z2434516##l\r\n\r\n";
		selStr +=" "+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+""+tz13+""+tz14+""+tz12+"";
        cm.sendSimple(selStr);
	 } else if  (status == 1) {
        switch (selection) {
        case 1:
	var gachaponItem = cm.gainGachaponItem(2434518, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001814,1, 1);//夜晚火车骑宠90天2434518
	cm.gainNX(-1000);
	cm.dispose();
        break;
        case 2:
	var gachaponItem = cm.gainGachaponItem(2433006, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001337,1, 1);//巨大公鸡骑宠30天2433006
	cm.gainNX(-1000);
	cm.dispose();
            break;
	    case 3:
	var gachaponItem = cm.gainGachaponItem(2433658, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001703,1, 1);//来自星星的要员骑宠30天2433658
	cm.gainNX(-1000);
	cm.dispose();
            break;
	    case 4:
	var gachaponItem = cm.gainGachaponItem(2434525, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001866,1, 1);//星条旗帽骑宠30天2434525
	cm.gainNX(-1000);
	cm.dispose();
            break;
	    case 5:
	var gachaponItem = cm.gainGachaponItem(2434526, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001867,1, 1);//发怒公牛骑宠30天2434526
	cm.gainNX(-1000);
	cm.dispose();
            break;
	    case 6:
	var gachaponItem = cm.gainGachaponItem(2434581, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001871,1, 1);//月亮骑宠30天2434581
	cm.gainNX(-1000);
	cm.dispose();
            break;
	    case 7:
	var gachaponItem = cm.gainGachaponItem(2434674, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001920,1, 1);//暴风米梅特骑宠30天2434674
	cm.gainNX(-1000);
	cm.dispose();
            break;
	    case 8:
	var gachaponItem = cm.gainGachaponItem(2434582, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001872,1, 1);//花蝴蝶骑宠30天2434582
	cm.gainNX(-1000);
	cm.dispose();
            break;
	    case 9:
	var gachaponItem = cm.gainGachaponItem(2434580, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001870,1, 1);//哎呀松饼骑宠30天2434580
	cm.gainNX(-1000);
	cm.dispose();
            break;
	    case 10:
	var gachaponItem = cm.gainGachaponItem(2434527, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001868,1, 1);//鱼尾狮骑宠30天2434527
	cm.gainNX(-1000);
	cm.dispose();
            break;
		case 11:
	var gachaponItem = cm.gainGachaponItem(2433052, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001583,1, 1);//猫咪手推车骑宠90天2433052
	cm.gainNX(-1000);
	cm.dispose();
            break;
		case 12:
	var gachaponItem = cm.gainGachaponItem(2433054, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001585,1, 1);//喷气式滑艇骑宠90天 2433054
	cm.gainNX(-1000);
	cm.dispose();
            break;
		case 13:
	var gachaponItem = cm.gainGachaponItem(2434276, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001785,1, 1);//冲浪板骑宠90天2434276
	cm.gainNX(-1000);
	cm.dispose();
            break;
		case 14:
	var gachaponItem = cm.gainGachaponItem(2434650, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001919,1, 1);//香气屁骑宠90天2434650
	cm.gainNX(-1000);
	cm.dispose();
            break;
	    case 15:
	var gachaponItem = cm.gainGachaponItem(2434516, 1, "骑宠技能商店", 3, true);
	cm.playerMessage(1, "　" + cm.getChar().getName() + "\r\n\r\n尊敬的玩家\r\n\r\n恭喜您获得了骑宠技能！\r\n\r\n点击角色信息-骑宠，查看并使用。");
	cm.teachSkill(80001812,1, 1);//毛毛虫骑宠90天2434516
	cm.gainNX(-1000);
	cm.dispose();
            break;	    
		case 16:
            cm.dispose();
            cm.warp(680000000);
            break;
case 225:
            cm.dispose();
            //cm.openWeb("http://sae.kmmmhh.com/GPays.html?g=2314");
	    cm.sendOk("已经为您打开赞助网站！");
            break;


}
    }
}



